From 1996a5edff919253632c1e26b706ab7373fbc8b9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 8 Nov 2011 16:28:22 -0500 Subject: [PATCH] testgmenu: Demonstrate how translatable labels work --- tests/testgmenu.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/testgmenu.c b/tests/testgmenu.c index 821daca514..1f8b0d79f3 100644 --- a/tests/testgmenu.c +++ b/tests/testgmenu.c @@ -387,7 +387,9 @@ menu_holder_get_menu (MenuHolder *holder) static const gchar menu_markup[] = "\n" "
\n" - " \n" + " \n" + " '_Undo'\n" + " \n" " \n" "
\n" "
\n" @@ -415,7 +417,7 @@ start_element (GMarkupParseContext *context, GError **error) { if (strcmp (element_name, "menu") == 0) - g_menu_markup_parser_start_menu (context, NULL); + g_menu_markup_parser_start_menu (context, "gtk30", NULL); } static void @@ -453,7 +455,7 @@ get_model (void) return G_MENU_MODEL (menu); } -/* The example actions {{{1 */ + /* The example actions {{{1 */ static void activate_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) -- 2.30.2